put secsDown && "Seconds until SHUTDOWN (hit cmd-period to cancel)"
wait 59 ticks
subtract 1 from secsDown
if secsDown<1 then exit repeat
end repeat
put "Gone!"
shutdown
end mouseUp
-- part contents for background part 1
----- text -----
Shutdown
-- part contents for background part 3
----- text -----
on mouseUp
put 10 into secsDown
repeat forever
put secsDown && "Seconds until SHUTDOWN (hit cmd-period to cancel)"
wait 59 ticks
subtract 1 from secsDown
if secsDown<1 then exit repeat
end repeat
put "Gone!"
shutdown
end mouseUp
-- part contents for background part 5
----- text -----
7/1/88 4:07 PM
-- part contents for background part 4
----- text -----
This is an example of how to use the Shutdown XCMD by Joseph F. Buchanan. If Shutdown is called with the R option, then it will do a restart instead of a shutdown.